<div class="container-fluid" style="margin-top: 10px;">
    <div class="row">

        {volist name=''}

        {:form('text',['title'=>'变动编号','disable'=>'disabled','value'=>$data.FURN_NO])}
        {:form('text',['title'=>'家具名称','name'=>'FURN_NAME','value'=>$data.FURN_NAME])}
        {:form('text',['title'=>'入账时间','name'=>'ENTER_TIME','value'=>$data.ENTER_TIME])}
        {:form('select',['title'=>'分类号','name'=>'FURNTYPE_NO','value'=>$data.FURNTYPE_NO,'list'=>$furnType,'key'=>'FACITYPE_ID','field'=>'FACITYPE'])}
        {:form('select',['title'=>'国有资产分类','name'=>'ASSET_TYPE_ID','value'=>$data.ASSET_TYPE_ID,'list'=>$assetType])}
        {:form('select',['title'=>'国标','name'=>'GB','value'=>$data.GB,'list'=>$furnGb,'key'=>'GBCODE','field'=>'NAME'])}
        {:form('select',['title'=>'状态','name'=>'STATE_ID','value'=>$data.STATE_ID,'list'=>$furnState,'key'=>'STATE_ID','field'=>'STATE'])}
        {:line()}
        {:form('select',['title'=>'隶属单位','name'=>'BELONG_ID','value'=>$data.BELONG_ID,'list'=>$belong,'key'=>'BELONG_ID','field'=>'BELONG'])}
        {:form('depart',['c_title'=>'所在学院','c_value'=>$data.COLLEGE_ID,'b_title'=>'领用部门','b_value'=>$data.DEPART_ID,'b_name'=>'DEPART_ID'])}
        {:form('text',['title'=>'领用人','name'=>'GET_PERSON','value'=>$data.GET_PERSON])}
        {:line()}
        {:form('text',['title'=>'价格','name'=>'PRICE','value'=>$data.PRICE])}
        {:form('text',['title'=>'品牌','name'=>'BRAND','value'=>$data.BRAND])}
        {:form('text',['title'=>'技术指标','name'=>'SPEC','value'=>$data.SPEC])}
        {:form('text',['title'=>'型号','name'=>'MODEL','value'=>$data.MODEL])}
        {:form('text',['title'=>'厂商','name'=>'FACTORY','value'=>$data.FACTORY])}
        {:form('text',['title'=>'出厂号','name'=>'FACTORY_NO','value'=>$data.FACTORY_NO])}
        {:form('text',['title'=>'出厂日期','name'=>'FACTORY_DATE','value'=>$data.FACTORY_DATE])}
        {:form('text',['title'=>'购置日期','name'=>'GET_DATE','value'=>$data.GET_DATE])}
        {:form('select',['title'=>'国别','name'=>'COUNTRY_ID','value'=>$data.COUNTRY_ID,'list'=>$country])}
        {:form('select',['title'=>'资金来源','name'=>'ZJLY','value'=>$data.ZJLY,'list'=>$zjly,'key'=>'ID','field'=>'ZIJIN'])}
        {:form('text',['title'=>'来源明细','name'=>'ZJLY_DETAIL','value'=>$data.ZJLY_DETAIL])}
        {:form('text',['title'=>'存放地点','name'=>'PLACE','value'=>$data.PLACE])}
        {:form('text',['title'=>'发票号','name'=>'NOTICE_NO','value'=>$data.NOTICE_NO])}
        {:form('select',['title'=>'批量采购','name'=>'MUTI_BUY_MARK','value'=>$data.MUTI_BUY_MARK,'list'=>$muti])}
        {:form('select',['title'=>'提交标志','name'=>'SUBMIT_MARK','value'=>$data.SUBMIT_MARK,'list'=>$submit])}
        {:line()}
        {:form('text',['title'=>'经手人','name'=>'CHECK_PERSON','value'=>$data.CHECK_PERSON])}
        {:form('text',['title'=>'负责人','name'=>'CHARGE_PERSON','value'=>$data.CHARGE_PERSON])}
        {:form('text',['title'=>'备注','name'=>'REMARK','value'=>$data.REMARK,'col'=>'col-sm-12'])}
        {:form('text',['title'=>'备注2','name'=>'REMARK2','value'=>$data.REMARK2,'col'=>'col-sm-12'])}
        {:line()}
        {:form('text',['title'=>'制单人','value'=>$data.INPUT_NAME,'disable'=>'disabled'])}
        {:form('text',['title'=>'制单时间','value'=>$data.INPUT_TIME,'disable'=>'disabled'])}
    </div>
</div>

<script>

    function clickSubmit() {
        layer.confirm('确认更新家具信息吗?',function (index) {
            layer.close(index);
            layer.load();
            $("#furnForm").ajaxSubmit(function (text) {
                console.log(text);
                layer.closeAll('loading');
                var json = JSON.parse(text);
                if(json['code'] == '200'){
                    layer.alert(json['msg'],{icon:1},function (index) {
                        layer.close(index);
                        parent.location.reload();
                    });
                }
                else{
                    layer.alert(json['msg'],{icon:2});
                }
            });
        });
    }

</script>